<?php include_once './header.php'; ?>

<?php 
include('config.php'); 
echo "<table border=1 >"; 
echo "<tr>"; 
echo "<td><b>Id Fecha</b></td>"; 
echo "<td><b>Id Servicio Ad</b></td>"; 
echo "<td><b>Fecha</b></td>"; 
echo "<td><b>Lugar Encuentro</b></td>"; 
echo "<td><b>Descripción Servicio</b></td>"; 

echo "</tr>"; 
$result = mysql_query("SELECT * FROM fecha_actividad f, serviciosadicionales s where f.id_servicio_ad = s.idServicio and fecha >=  CURDATE() order by fecha asc") or trigger_error(mysql_error()); 
while($row = mysql_fetch_array($result)){ 
foreach($row AS $key => $value) { $row[$key] = stripslashes($value); } 
echo "<tr>";  
echo "<td valign='top'>" . nl2br( $row['id_fecha']) . "</td>";  
echo "<td valign='top'>" . nl2br( $row['nombreServicio']) . "</td>";  
echo "<td valign='top'>" . nl2br( $row['fecha']) . "</td>";  
echo "<td valign='top'>" . nl2br( $row['lugar_encuentro']) . "</td>";  
echo "<td valign='top'>" . nl2br( $row['descServicio']) . "</td>";  

echo "<td valign='top'><a href=editFechaServices.php?id_fecha={$row['id_fecha']}>Edit</a></td><td><a href=deleteFechaServices.php?id_fecha={$row['id_fecha']}>Delete</a></td> "; 
echo "</tr>"; 
} 
echo "</table>"; 
echo "<a href=newFechaServices.php>New Row</a>"; 
?>

<?php include_once './footer.php'; ?>